
#include<iostream>

using namespace std;

class board
{
private:
char cell[10][10];
public:
void initializer();
bool print_cells();
};

void board:: initializer()
{
	for(int i=0; i<10;i++)
	{
		for(int j=0; j<10;j++)
		{
			if(j==0||j==9||i==0||i==9)
			{
				cell[i][j]='z';
			}
			else
			{
				cell[i][j]=' ';
			}
			//cout<<cell[i][j]<<" ";
		}
		//cout<<"\n";
			
	}
}

bool board::print_cells()// if uninitialized this will break code;
{
	cout<<"  a b c d e f g h \n" ;
	cout<<" +-+-+-+-+-+-+-+-+\n";
	for(int i=1; i<9;i++)
	{
		cout<<i;
		for(int j=1; j<9;j++)
		{
			
			cout<<"|"<<cell[i][j];
		}
		cout<<"|";
		cout<<"\n";
		
		cout<<" +-+-+-+-+-+-+-+-+";
		
		
		cout<<"\n";
			
	}

}


int main()
{
board b;
b.initializer();
b.print_cells();
return(0);
}
